Skip to content

fix(runs): remove the workspace roots a refused launch added - #822

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/refused-launch-root
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/refused-launch-root

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #772

What

A refused launch leaves no missing root in its workspace.

  • Order: records, roots, records again, committed decision, workers.
  • Before committed, start_all takes back the roots it added, then frees the names and the decision.
  • A failed committed write is read back: committed starts, preparing is refused, unknown stays for the restart and says so.
  • Workspace found by uid or folder, again if it moves.
  • The refusal keeps its reason, adds what stayed and says to retry; "may still list" when unknown.

Touches

begin, start_all, release, adopt_roots, workspace.add_roots, new workspace.take_back.

Verified

  • Repro on main: 503, root missing on disk; here none.
  • New tests fail on earlier rounds.
  • Backend suite 3863 OK, route suite 1016 OK.

Risk

With nothing open, a late refusal leaves an empty workspace.

Agents

Claude Code, Opus 5.5
Codex, GPT-6.2-Astra (review)

@harenome
harenome marked this pull request as ready for review December 3, 2026 23:10
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit 8671521 into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/refused-launch-root branch December 3, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A launch refused at its first record leaves its jobs folder as a root of the workspace

1 participant